-- GENERATED SPELL FOR [Valeera Sanguinar] --


function spell0_32378(pUnit, Event) --@Eviscerate,n/a--
pUnit:FullCastSpellOnTarget(48668,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32378', 573, 1)
end

function spell1_32378(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(48638,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32378', 590, 1)
end

function spell2_32378(pUnit, Event) --@Slice and Dice,Self--
pUnit:FullCastSpellOnTarget(60847,pUnit)
pUnit:RegisterEvent('Sorts_32378', 10297, 1)
end

function spell3_32378(pUnit, Event) --@Vanish,Self--
pUnit:FullCastSpellOnTarget(39667,pUnit)
pUnit:RegisterEvent('Sorts_32378', 4000, 1)
end

function Sorts_32378(pUnit, Event)
local choix_sorts_32378 = math.random(0, 3)
if choix_sorts_32378 == 0 then
pUnit:RegisterEvent('spell0_32378', 1, 1)
end
if choix_sorts_32378 == 1 then
pUnit:RegisterEvent('spell1_32378', 1, 1)
end
if choix_sorts_32378 == 2 then
pUnit:RegisterEvent('spell2_32378', 1, 1)
end
if choix_sorts_32378 == 3 then
pUnit:RegisterEvent('spell3_32378', 1, 1)
end
end

function mob32378_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32378', math.random(1500, 3000), 1)
end

function mob32378_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32378_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32378_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32378, 1, 'mob32378_Action')
RegisterUnitEvent(32378, 2, 'mob32378_Leave')
RegisterUnitEvent(32378, 3, 'mob32378_Kill')
RegisterUnitEvent(32378, 4, 'mob32378_Die')
